﻿using System;
using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.club
{
    public class ClubRoomCardRet : Message
    {
        public static int TYPE = 7;
        public static int ID = 53;

        private int clubID;
        private int roomCard;

        public int RoomCard
        {
            get
            {
                return roomCard;
            }

            set
            {
                roomCard = value;
            }
        }

        public int ClubID
        {
            get
            {
                return clubID;
            }

            set
            {
                clubID = value;
            }
        }

        public void decode(Input _in)
        {
            clubID = _in.readInt();
            roomCard = _in.readInt();
        }

        public void encode(Output _out)
        {        
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("clubID= {1},  roomCardTex= {0}",roomCard,clubID);
        }
    }
}